<table>
	<tr>
		<td>
			<form name="f" method="post" enctype="multipart/form-data">
			<fieldset>
			<legend>Chọn banner</legend>
			<table>
				<tr>					
					<td><input type="file" name="img" size="25" /></td>
					<td><input type="submit" name="submit" value="Upload" /></td>
				</tr>
			</table>
			</fieldset>
			</form>
		</td>
	</tr>
</table>
<img src=
<?php
	if(isset($_POST['submit'])){
		if($_FILES['img']['name']!=null){
			if($_FILES['img']['type']=='image/jpeg'){
				move_uploaded_file($_FILES['img']['tmp_name'],"../banner/".$_FILES['img']['name']);
			}else echo "File vừa chọn không phải là file ảnh";
		}
	}
?>